package com.qf.joint.service.impl;

import com.qf.joint.dao.RecruitpostDao;
import com.qf.joint.pojo.Recruitpost;
import com.qf.joint.service.RecruitpostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RecruitpostServiceImpl implements RecruitpostService{
    @Autowired
    private RecruitpostDao recruitpostDao;
    @Override
    public int insert(Recruitpost recruitpost) {
        int k=recruitpostDao.insert(recruitpost);
        return k;
    }

    @Override
    public int delete(List<Integer> list) {
        int k=recruitpostDao.delete(list);
        return k;
    }

    @Override
    public int update(Recruitpost recruitpost) {
        int k=recruitpostDao.update(recruitpost);
        return k;
    }

    @Override
    public List<Recruitpost> select(Recruitpost recruitpost) {
        List<Recruitpost> list=recruitpostDao.select(recruitpost);
        return list;
    }

    @Override
    public List<Recruitpost> selectAll(Recruitpost recruitpost) {
        List<Recruitpost> list=recruitpostDao.selectAll(recruitpost);
        return list;
    }

    @Override
    public List<Recruitpost> selectAllmore(Recruitpost recruitpost) {
        List<Recruitpost> list=recruitpostDao.selectAllmore(recruitpost);
        return list;
    }
}
